package com.example.yk.entity

data class DetailEntityResult(
    val code: String,
    val context: String,
    val detail: String,
    val ext: Any,
    val mallGoodsInfoInfo: MallGoodsInfoInfo,
    val message: String,
    val partnerId: String,
    val protocol: String,
    val requestNo: String,
    val service: String,
    val success: Boolean,
    val version: String
)


data class MallGoodsInfoInfo(
    val brandId: Int,
    val brandName: String,
    val categoryCode: String,
    val code: String,
    val detailUrl: List<String>,
    val details: String,
    val displacement: String,
    val id: Int,
    val licenseCode: String,
    val licenseName: String,
    val mainImgId: Int,
    val mainImgUrl: String,
    val marketPriceFee: Double,
    val modelCode: String,
    val modelName: String,
    val params: String,
    val post: Boolean,
    val posterUll: List<String>,
    val productType: String,
    val purchasePrice: Double,
    val skuList: List<Sku>,
    val soldNum: Int,
    val specAttrList: List<SpecAttr>,
    val tagName: List<Any>,
    val title: String,
    val tlineCode: String,
    val tlineName: String,
    val videoImgUrl: String,
    val videoUrl: List<Any>,
    val wagonNumberCode: String,
    val wagonNumberName: String
)

data class Sku(
    val attrs: String,
    val deposit: Double,
    val goodsCode: String,
    val goodsDesc: String,
    val goodsId: Int,
    val goodsName: String,
    val id: Int,
    val limitNumber: Int,
    val limitNumberC: Int,
    val marketPriceFee: Double,
    val originName: String,
    val purchasePrice: Double,
    val referrals: Boolean,
    val saleMessage: String,
    val saleStatus: Boolean,
    val skuDesc: String,
    val skuImgId: String,
    val skuImgUrl: String,
    val skuName: String,
    val stocks: Int
)

data class SpecAttr(
    val attrKey: String,
    val goodsAttrValues: List<GoodsAttrValue>,
    val id: String,
    val isShowPic: Boolean
)

data class GoodsAttrValue(
    val attrKeyId: Int,
    val attrValue: String,
    val fileUrl: String,
    val id: String
)